/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cc.altius.service.impl;

import cc.altius.dao.HealthSpringContactDao;
import cc.altius.model.Category;
import cc.altius.model.HealthSpringContact;
import cc.altius.service.HealthSpringContactService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 * @author yogesh
 */
@Service
public class HealthSpringContactServiceImpl implements HealthSpringContactService {

    @Autowired
    private HealthSpringContactDao healthSpringContactDao;

    @Override
    public int addHealthSpringContact(HealthSpringContact healthSpringContact) {
        return this.healthSpringContactDao.addHealthSpringContact(healthSpringContact);
    }

    @Override
    public List<HealthSpringContact> getHealthSpringContactList() {
        return this.healthSpringContactDao.getHealthSpringContactList();
    }

    @Override
    public int updateHealthSpringContact(HealthSpringContact healthSpringContact) {
        return this.healthSpringContactDao.updateHealthSpringContact(healthSpringContact);
    }

    @Override
    public List<Category> getCategoryList() {
        return this.healthSpringContactDao.getCategoryList();
    }

    @Override
    public HealthSpringContact getHealthSpringContactById(int healthSpringContactId) {
        return this.healthSpringContactDao.getHealthSpringContactById(healthSpringContactId);
    }
}
